package com.ll.domain.shop.base.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ll.dal.mapper.GoodsMapper;
import com.ll.dal.po.GoodsPO;
import com.ll.dal.po.ShopPO;
import com.ll.domain.shop.base.GoodsBaseService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author shzz
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class GoodsBaseServiceImpl extends ServiceImpl<GoodsMapper, GoodsPO> implements GoodsBaseService {

    private final GoodsMapper goodsMapper;

    @Override
    public void updateLogo(Long id, String logs) {
        GoodsPO po = new GoodsPO();
        po.setId(id);
        po.setLogo(logs);
        goodsMapper.updateById(po);
    }
}
